k-nearest neighbors tutorial for beginners